<script setup lang="ts">
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
import HelloWorld from './components/HelloWorld.vue'


</script>

<template>
  <router-view v-slot="{ Component }">
        <template v-if="Component">
            <keep-alive>
                <suspense>
                    <component :is="Component"
                        v-if="$route.meta.keepAlive" />
                </suspense>
            </keep-alive>
            <suspense>
                <component :is="Component"
                    v-if="!$route.meta.keepAlive" />
            </suspense>
        </template>
    </router-view>
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
